package cn.com.pc.content.support.util;

import java.util.HashMap;
import java.util.Map;

public class HtmlFilter34Pconline extends HtmlFilter3 {
	public static final Map<String, HtmlFilter3.TagHandler> DEFAULT_TAG_HANDLER_MAP =
			new HashMap<String, HtmlFilter3.TagHandler>();

	public HtmlFilter34Pconline() {
		super();
	}

	public HtmlFilter34Pconline(boolean thumb, int bigWidth) {
		super(thumb,bigWidth);
	}

	public String process(String html) {
		return process(html, DEFAULT_TAG_HANDLER_MAP);
	}

	static {
		DEFAULT_TAG_HANDLER_MAP.put("a", A_TAG_HANDLER);
		DEFAULT_TAG_HANDLER_MAP.put("img", IMG_TAG_HANDLER);
		DEFAULT_TAG_HANDLER_MAP.put("br", BLOCK_TAG_HANDLER);
		DEFAULT_TAG_HANDLER_MAP.put("div", KEEP_TAG_HANDLER);
		DEFAULT_TAG_HANDLER_MAP.put("p", KEEP_TAG_HANDLER);
		DEFAULT_TAG_HANDLER_MAP.put("table", TABLE_TAG_HANDLER);
		DEFAULT_TAG_HANDLER_MAP.put("tbody", KEEP_TAG_HANDLER);
		DEFAULT_TAG_HANDLER_MAP.put("th", KEEP_TAG_HANDLER);
		DEFAULT_TAG_HANDLER_MAP.put("tr", KEEP_TAG_HANDLER);
		DEFAULT_TAG_HANDLER_MAP.put("td", KEEP_TAG_HANDLER);
		DEFAULT_TAG_HANDLER_MAP.put("script", REMOVE_TAG_HANDLER);
		DEFAULT_TAG_HANDLER_MAP.put("form", FORM_TAG_HANDLER);
		DEFAULT_TAG_HANDLER_MAP.put("epro_product1_js", EMPTY_TAG_HANDLER);
		DEFAULT_TAG_HANDLER_MAP.put("epro_product2_js", EMPTY_TAG_HANDLER);
		DEFAULT_TAG_HANDLER_MAP.put("epro_product3_js", EMPTY_TAG_HANDLER);
		DEFAULT_TAG_HANDLER_MAP.put("epro_product4_js", EMPTY_TAG_HANDLER);
		DEFAULT_TAG_HANDLER_MAP.put("epro_product5_js", EMPTY_TAG_HANDLER);
		DEFAULT_TAG_HANDLER_MAP.put("epro_product6_js", REMOVE_TAG_HANDLER);
		DEFAULT_TAG_HANDLER_MAP.put("epro_product7_js", REMOVE_TAG_HANDLER);
		DEFAULT_TAG_HANDLER_MAP.put("epro_part", EMPTY_TAG_HANDLER);
		DEFAULT_TAG_HANDLER_MAP.put("epro_end", EMPTY_TAG_HANDLER);
		DEFAULT_TAG_HANDLER_MAP.put("em_epro_part", EMPTY_TAG_HANDLER);
		DEFAULT_TAG_HANDLER_MAP.put("em_epro_end", EMPTY_TAG_HANDLER);
		DEFAULT_TAG_HANDLER_MAP.put("epro_block", EMPTY_TAG_HANDLER);
		DEFAULT_TAG_HANDLER_MAP.put("epro_block_end", EMPTY_TAG_HANDLER);
		DEFAULT_TAG_HANDLER_MAP.put("epro_hq", EMPTY_TAG_HANDLER);
		DEFAULT_TAG_HANDLER_MAP.put("epro_soft_ad", REMOVE_TAG_HANDLER);
		DEFAULT_TAG_HANDLER_MAP.put("temptagamigopcqh", REMOVE_TAG_HANDLER);
		DEFAULT_TAG_HANDLER_MAP.put("link", REMOVE_TAG_HANDLER);
		DEFAULT_TAG_HANDLER_MAP.put("style", REMOVE_TAG_HANDLER);
		DEFAULT_TAG_HANDLER_MAP.put("span", KEEP_TAG_HANDLER);
		DEFAULT_TAG_HANDLER_MAP.put("strong", KEEP_TAG_HANDLER);
		DEFAULT_TAG_HANDLER_MAP.put("font", KEEP_TAG_HANDLER);
		DEFAULT_TAG_HANDLER_MAP.put("dl", KEEP_TAG_HANDLER);
		DEFAULT_TAG_HANDLER_MAP.put("dt", KEEP_TAG_HANDLER);
		DEFAULT_TAG_HANDLER_MAP.put("dd", KEEP_TAG_HANDLER);
		DEFAULT_TAG_HANDLER_MAP.put("em", KEEP_TAG_HANDLER);
		DEFAULT_TAG_HANDLER_MAP.put("embed", EMBED_TAG_HANDLER);
		DEFAULT_TAG_HANDLER_MAP.put("ul", KEEP_TAG_HANDLER);
		DEFAULT_TAG_HANDLER_MAP.put("ol", KEEP_TAG_HANDLER);
		DEFAULT_TAG_HANDLER_MAP.put("li", KEEP_TAG_HANDLER);
		DEFAULT_TAG_HANDLER_MAP.put("i", KEEP_TAG_HANDLER);
		DEFAULT_TAG_HANDLER_MAP.put("h1", KEEP_TAG_HANDLER);
		DEFAULT_TAG_HANDLER_MAP.put("h2", KEEP_TAG_HANDLER);
		DEFAULT_TAG_HANDLER_MAP.put("h3", KEEP_TAG_HANDLER);
		DEFAULT_TAG_HANDLER_MAP.put("h4", KEEP_TAG_HANDLER);
		DEFAULT_TAG_HANDLER_MAP.put("h4", KEEP_TAG_HANDLER);
		DEFAULT_TAG_HANDLER_MAP.put("h6", KEEP_TAG_HANDLER);
		DEFAULT_TAG_HANDLER_MAP.put("iframe", IFRAME_TAG_HANDLER);
		DEFAULT_TAG_HANDLER_MAP.put("object", OBJECT_TAG_HANDLER);
	}

}
